is Cost Basis Valid
Validates the integrity of cost-basis lot matching for a lot-controlled Security Account. Refer: getInvalidLotMatchSellTxns for details of validation checks performed. >> if getUnmatchedSaleLots returns null or empty, then cost basis will be valid. >> passes failFast parameter true. I.e. validation check stop on first error detected.
Note: Relocated code from InvestUtil so that all 'cost basis' type code in one unified class...
Return
true if all cost-basis validations succeed; otherwise false.
Parameters
sec
The security account to validate.
debug
enable debug messages for this validation.